﻿using System.ComponentModel.DataAnnotations;

namespace Shop.Model.Dto.User
{
    /// <summary>
    /// 小程序登录
    /// </summary>
    public class WeChatLoginDto
    {
        /// <summary>
        /// 公众号授权码
        /// </summary>
        [Required(ErrorMessage = "公众号授权码不可为空")]
        public string GZHCode { get; set; }

        /// <summary>
        /// 小程序授权码
        /// </summary>
        [Required(ErrorMessage = "小程序授权码不可为空")]
        public string AppletCode { get; set; }

        /// <summary>
        /// 上级
        /// </summary>
        public long SuperiorId { get; set; }
    }
}
